package net.sky.oa.test.dao.talkpark;

import java.util.Date;

import javax.annotation.Resource;

import org.junit.Test;
import org.springframework.test.annotation.Rollback;

import net.sky.oa.dao.talkpark.TalCommentDao;
import net.sky.oa.model.SysEmployee;
import net.sky.oa.model.TalBlog;
import net.sky.oa.model.TalComment;
import net.sky.oa.test.BaseTestCase;

public class TalCommentDaoTestCase extends BaseTestCase {

	@Resource
	private TalCommentDao talcommentdao;
	
	@Test
	@Rollback(value=false)
	public void save(){
		TalComment talcomment=new TalComment();
		TalBlog  blog=new TalBlog();
		blog.setId(38L);
		talcomment.setBlog(blog);
		talcomment.setContent("OK");
		talcomment.setCreatetime(new Date());
		talcomment.setStatus(1);
		talcomment.setUser(new SysEmployee(21L));
		talcommentdao.save(talcomment);
	}
}
